﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Omron.Framework.Networking.AutoSync
{
	public delegate void OnUpdate();

	[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
	public class SyncField : Attribute
	{
		public byte Id;
		public OnUpdate OnUpdate = null;

		public SyncField(byte id)
		{
			Id = id;
		}

		public SyncField(byte id, OnUpdate onUpdate)
		{
			Id = id;
			OnUpdate = onUpdate;
		}
	}
}
